FROM anda/centos-aliyun:0.1
MAINTAINER mike "mike_hmr@126.com"
RUN yum -y install wget tar tcl make gcc

ENV REDIS_HOME /usr/local/redis/
ENV REDIS_VERSION 3.2.7
ENV PATH $PATH:$REDIS_HOME/bin

RUN wget http://download.redis.io/releases/redis-${REDIS_VERSION}.tar.gz && \
    tar -xvf redis-${REDIS_VERSION}.tar.gz && \
    cd redis-${REDIS_VERSION} && \
    make PREFIX=/usr/local/redis install



WORKDIR /usr/local/redis

#EXPOSE 6379
